﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Configuration;

namespace LINQtoLDAPDemo_Console.disable
{
    public class Group
    {
        #region Properties
        public string Name { get; set; }
        public string Description { get; set; }

        /* In order to map to Members property in a group object, this must be a System.Collections.ObjectModel.Collection<string> type.
         * See first example on this page: http://linqtoldap.codeplex.com/wikipage?title=Attribute%20Class%20Map&referringTitle=Mapping
         * */
        // System.Collections.ObjectModel.Collection<string> Members { get; set; }
        public string[] Members { get; set; }

        public string DistinguishedName
        {
            get
            {
                return string.Format("CN={0},CN=Groups,{1}", this.Name, ConfigurationSettings.AppSettings["ldapPartition"]);
            }
            set { }
        }
        #endregion
    }
}
